package uni.stuttgart.openstreetmap;

import java.util.ArrayList;

public class JsonDataList {

	int photoCounter = 0;
	int maxPhotoCounter = 2;
	public ArrayList<JsonData>myPhotoArray;
	
	public JsonDataList(int maxPhotoNumber) {
		this.maxPhotoCounter = maxPhotoNumber;
		myPhotoArray = new ArrayList<JsonData>(maxPhotoCounter);
	}
	
	public void addPhotoToArray (JsonData photoData){
		if (this.photoCounter < this.maxPhotoCounter){
			myPhotoArray.add(photoData);
			this.photoCounter++;
		}
	}
	
	public int getPhotoCounter(){
		return this.photoCounter;
	}
	
	public int getMaxPhotoCounter(){
		return this.maxPhotoCounter;
	}	
}
